﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Learn.Default" %>
<%@ Import Namespace="Model.WWW_User.LearnComment" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="Lx.Web.Common.UI" %>
<script>
var LN001="<%=GetText("LN001")%>";
var M0008="<%=GetText("M0008")%>";
var M0009="<%=GetText("M0009")%>";
var M0010="<%=GetText("M0010")%>";
var M0011="<%=GetText("M0011")%>";
var M0012="<%=GetText("M0012")%>";
var C0003="<%=GetText("C0003")%>";
</script>
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle"><%=C0105.Replace("{0}", GetLanguageText(learnVal))%></div>
							<div class="submenuN_button"><%=GetText("LN001")%> <select id="selLearnL" onchange="Post()"><%=GetLanguageSelect(learnVal)%></select></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="center9001right">
						<div class="center9001content">
							<div class="index_default_area">
								<div class="tutorM_list">
									<h3><%=GetLanguageText(learnVal)%> Tutoring</h3>
									<div>
										<div class="tutorM_list_one" id="test">
											<div class="left Pic75"><a href='/T000107209.htm'><img src='/UpLoadImages/Avatar/T000107209_Avatar.jpg' /></a></div>
											<div class="right"><h4><img src='/Images/offline.gif' title='Offline' /> <a href='/T001517880.htm'>grassoar</a></h4><div class="floatl" style="margin-top:10px"><a href="#" class="addbtn" style="text-decoration:none"><span>&nbsp;&nbsp;&nbsp;Request tutoring&nbsp;&nbsp;&nbsp;</span></a></div><div class="clear"></div></div>
											<div class="clear"></div>
										</div>
										<div class="tutorM_list_one" id="test">
											<div class="left Pic75"><a href='/T001517133.htm'><img src='/UpLoadImages/Avatar/T000256661_Avatar.jpg' /></a></div>
											<div class="right"><h4><img src='/Images/online.gif' title='Online Now!' /> <a href='/T001517133.htm'>a'Ice Season</a></h4><div class="floatl" style="margin-top:10px"><a href="#" class="addbtn" style="text-decoration:none"><span>&nbsp;&nbsp;&nbsp;Request tutoring&nbsp;&nbsp;&nbsp;</span></a></div><div class="clear"></div></div>
											<div class="clear"></div>
										</div>
										<div class="tutorM_list_one" id="test">
											<div class="left Pic75"><a href='/T000107138.htm'><img src='/UpLoadImages/Avatar/T000107138_Avatar.jpg' /></a></div>
											<div class="right"><h4><img src='/Images/online.gif' title='Online Now!' /> <a href='/T000107138.htm'>Bug XP</a></h4><div class="floatl" style="margin-top:10px"><a href="#" class="addbtn" style="text-decoration:none"><span>&nbsp;&nbsp;&nbsp;Request tutoring&nbsp;&nbsp;&nbsp;</span></a></div><div class="clear"></div></div>
											<div class="clear"></div>
										</div>
										<div class="tutorM_list_one" id="test">
											<div class="left Pic75"><a href='/T001516862.htm'><img src='/UpLoadImages/Avatar/T000383457_Avatar.jpg' /></a></div>
											<div class="right"><h4><img src='/Images/online.gif' title='Online Now!' /> <a href='/T001516862.htm'>ubbdmag</a></h4><div class="floatl" style="margin-top:10px"><a href="#" class="addbtn" style="text-decoration:none"><span>&nbsp;&nbsp;&nbsp;Request tutoring&nbsp;&nbsp;&nbsp;</span></a></div><div class="clear"></div></div>
											<div class="clear"></div>
										</div>
										<div class="clear"></div>
									</div>
								</div>
								<div id="speakList" class="speakM_list">
									<h3><%=GetText("PB016",new string[]{GetLanguageText(learnVal)})%></h3>
									<div>
										<%foreach (Model.WWW_User.User.UserSummaryInfoModel um in userListSpeak)
										{%>
										<div class="speakM_list_one" id="test">
											<div class="left Pic50"><a href='/<%=um.MemberNo%>.htm'><%=(um.Avatar == "" ? "<img src='/Images/No_pic.gif' />" : ("<img src='"+um.Avatar+"' />"))%></a></div>
											<div class="right"><h4><%=um.Online ? "<img src='/Images/online.gif' title='Online Now!' />" : "<img src='/Images/offline.gif' title='Offline' />"%> <a href='/<%=um.MemberNo%>.htm'><%=um.Nickname%></a></h4>$C0003$ <%=GetCountryText(um.Nationality)%><br /><%=C0103.Replace("{0}",GetLanguageText(um.TargetLanguage))%></div>
											<div class="clear"></div>
										</div>
										<%} %>
										<div class="clear"></div>
										<div><a href="/contacts/search.htm?speak=<%=learnVal %>">more</a></div>
									</div>
								</div>
								<script>
									document.getElementById("speakList").innerHTML = document.getElementById("speakList").innerHTML.replace(/\$C0003\$/gi,C0003);
								</script>
							</div>
							<div class="blackboard_area">
								<h3><%=GetText("LN007",new string[]{GetLanguageText(learnVal)})%></h3>
								<div class="blackboard_list">
									<div class="learn_blackboard_post">
										<p><textarea id="txtLc" class="Input_blackboard_L" rows="4" cols=""></textarea>
										<span name="__V_S" vt="0" elt1="txtLc" reg="[\s\S]{5,3000}" style="color:Red;display:none" class="validMsg"><br /><%=GetText("ST155",new string[]{"5","3000"})%></span></p>
										<p><input type="button" id="btnPost" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"AddComment()\"":"onclick=\"NotAffirm()\""%>  class="button" value="<%=GetText("C0046")%>" /></p></div>	
									<div id="MainMessagePanel" class="DisplayNone">
										<div class="MessagePanel4">
											<img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;">
											<div id="MessageText"></div>
										</div>
									</div>
									<div id="CommentList" class="learn_peopleAll">
										<%foreach (LearnCommentModel cm in commentList)
										{ %>
										<div class="learn_comment">
											<div class="learn_comment_avatar Pic50"><a class="photo_50" href='/<%=cm.Memberno%>.htm'><%=(cm.Avatar == "" ? "<img src='/Images/No_pic.gif' />" : ("<img src='"+cm.Avatar+"' />"))%></a></div>
											<div class="learn_comment_Bacontent">
												<div class="learn_comment_acontent"><a href='/<%=cm.Memberno%>.htm'><%=cm.Nickname%></a> <span class="grey10"><%=FormatDiffDate(GetText("C0036"), cm.DiffDate)%></span><p><%=EncodeMessage(cm.Content)%></p></div>
												<div class="Clear"></div>
											</div>
											<div class="Clear"></div>
										</div>
										<%}%>
									</div>
									<div id="divNoComment" class="<%=(commentCount<1?"":"DisplayNone") %>"><%=GetText("LN009")%></div>
									<div id="divSeeMoreComment" class="<%=(commentCount>10?"":"DisplayNone") %>" ><a href="/learn/boardList.htm?learn=<%=learnVal%>"><%=GetText("LN010") %></a></div>
								</div>
							</div>
						</div>
					</div>
					<div class="Center9001Left">
						<div class="right_layerA">
							<div class="layer_contentD">
								<h4>Quick Link</h4>
								<div class="layer_contentA5" id="ReURL">
									<strong>$M0008$: </strong><a href="/answers/learn-<%=learnVal%>-all/1-1.htm"><%=C0105.Replace("{0}", GetLanguageText(learnVal))%></a><br />
									<strong>$M0010$: </strong><a href="/knowledge/learn-<%=learnVal%>-english.htm"><%=C0105.Replace("{0}", GetLanguageText(learnVal))%></a><br />
									<strong>$M0009$: </strong><a href="/files/learn-<%=learnVal%>-all/1-1.htm"><%=C0105.Replace("{0}", GetLanguageText(learnVal))%></a><br />
									<strong>$M0011$: </strong><a href="/resources/learn_<%=learnVal%>.htm"><%=C0105.Replace("{0}", GetLanguageText(learnVal))%></a><br />
									<strong>$M0012$: </strong><a href="/groups/default.htm"><%=C0105.Replace("{0}", GetLanguageText(learnVal))%></a>
									<script>
									document.getElementById("ReURL").innerHTML = document.getElementById("ReURL").innerHTML.replace(/\$M0009\$/gi,M0009).replace(/\$M0011\$/gi,M0011).replace(/\$M0008\$/gi,M0008).replace(/\$M0010\$/gi,M0010).replace(/\$M0012\$/gi,M0012);
									</script>
								</div>
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=C0103.Replace("{0}", GetLanguageText(learnVal))%></h4>
								<div class="layer_contentA5" id="learnList">
									<%foreach (Model.WWW_User.User.UserSummaryInfoModel um in userList)
									{%>
									<div style="width: 200px" class="margin10">
										<div class="floatl wid65 Pic50"><a class="Photo_50" href='/<%=um.MemberNo%>.htm'><%=(um.Avatar == "" ? "<img src='/Images/No_pic.gif' />" : ("<img src='"+um.Avatar+"' />"))%></a></div>
										<div class="floatl" style="width: 120px; overflow: hidden; white-space: nowrap; text-align:left"><%=um.Online ? "<img src='/Images/online.gif' title='Online Now!' />" : "<img src='/Images/offline.gif' title='Offline' />"%> <a href='/<%=um.MemberNo%>.htm'><%=um.Nickname%></a><br />$C0003$ <%=GetCountryText(um.Nationality)%><br /><%=GetText("C0104",new string[]{GetLanguageText(um.MotherTongue)})%></div>
										<div class="clear"></div>
									</div>
									<%} %>
									<div><a href="/contacts/search.htm?learn=<%=learnVal %>">more</a></div>
								</div>
							</div>
						</div>
						<script>
							document.getElementById("learnList").innerHTML = document.getElementById("learnList").innerHTML.replace(/\$C0003\$/gi,C0003);
						</script>
					</div>
					<div class="clear"></div>
					<div class="margin10" style="text-align:center">
					<script type="text/javascript">
					  GA_googleFillSlot("all_pages_bottom728x90");
					</script>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>	
</div>
<span id="valComment" style="color: Red; display: none;" class="red10"></span>
<div id="CommentTemplate" style="display: none">
	<div class="learn_comment">
		<div class="learn_comment_avatar"><div class="pic50"><a class="Photo_50" href='/$MemberNo$.htm'>$Avatar$</a></div></div>
		<div class="learn_comment_Bacontent">
			<div class="learn_comment_acontent"><a href='/$MemberNo$.htm'>$NickName$</a> <span class="grey10">$CreateDate$</span><p>$Content$</p></div>
			<div class="Clear"></div>
		</div>
		<div class="Clear"></div>
	</div>
</div>
<%--
var Page_Validators =  new Array($get("valComment"));
var TmpObj = $get("valComment");
TmpObj.controltovalidate = "txtLc";
TmpObj.errormessage = "<b><%=GetText("C1010")%></b><br /><%=GetText("ST155",new string[]{"5","3000"})%>";
TmpObj.display = "None";
TmpObj.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
TmpObj.validationexpression = "[\\s\\S]{5,3000}";
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") ValidatorOnLoad();

var warningIconImageUrl = "<%=RootPath%>Scripts/AjaxTools/images/alert-small.gif";
var closeImageUrl = "<%=RootPath%>Scripts/AjaxTools/images/close.gif";
function CreateValid()
{
	$create(AjaxControlToolkit.ValidatorCalloutBehavior, 
	{"closeImageUrl":closeImageUrl,"highlightCssClass":"validatorCalloutHighlight",
	"id":"valComment","warningIconImageUrl":warningIconImageUrl}, null, null, $get("valComment"));
}
--%>
<script>
var MessageTextS = "<%=GetText("C1003")%>";
var MessageTextF = "<%=GetText("C1011")%>";
var MessageImageS = "/images/ico_info.gif";
var MessageImageF = "/images/ico_info.gif";
var gDateFormat = "<%=GetText("C0033")%>";
var gStrDate = "<%=GetText("C0034")%>";
var gStrDate2 = "<%=GetText("C0036")%>";
var memberno = "<%=memberNo %>";
var learnL = "<%=learnVal %>";
var commentCount = <%=commentCount%>;
</script>